﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DevExpress.CrmDemo.Win.Data;
using DevExpress.CrmDemo.Win.Helpers;
using System.Net;

namespace DevExpress.CrmDemo.Win.Controls {
    public partial class Start : BasePage {


        private  TileControl tileControl1;
        private  TileGroup tGroup;
        private  TileItem tile_CompanyPayMoney;
        private  TileItem tQueryConter;
        private TileItem tChanceManager;
        private TileItem tProjectmanager;
        private TileItem tMaintenance;
        private TileItem tServiceManager;
        private TileItem tContractManger;
        private TileItem tLinkProcess;
        private TileItem tCostManager;
        private TileItem tActive;
        private  TileItem orderProcess;

        private  TileItem tAnnouncement;
        private  TileItem tSMSManager;
        private  TileItem tileBrandManager;
        private  TileItem tStatistics;
        private  TileItem tileDayPlan;
        //日程安排
        private  TileItem tSystemConfig;
        private  TileItem tileCompanyManager;
        private Header header1;

        private  TileItem titleAdminManager;
       private BindingSource generalStatsBindingSource;
       private BindingSource newOppsListBindingSource;
       private BindingSource teamMembersBindingSource;
        //客户管理
        private TileItem tCustomManager;
        private TileItem tEmailManager;
        TileItem tWorkbook;

        public Start() {
            InitializeComponent();
            this.LoadForm();
        }

        static string[] recordResult;

        delegate void GetRecordMethod(); //申明一个委托，表明需要在子线程上执行的方法的函数签名
        static GetRecordMethod recordMethod = new GetRecordMethod(CreateData);//把委托和具体的方法关联起来


        private void tileInlineOrder_ItemClick(object sender,  TileItemEventArgs e) {
            OnNavRequest(new NavRequestEventArgs(States.InlineOrder));
        }

        private void Start_Load(object sender, EventArgs e) {
            generalStatsBindingSource.DataSource = DataProvider.Instance.GeneralStats;
            newOppsListBindingSource.DataSource = DataProvider.Instance.NewestOpportunities;
            teamMembersBindingSource.DataSource = DataProvider.Instance.TeamMembers;
            Rectangle rect = new Rectangle();
            rect = Screen.GetWorkingArea(this);
            this.tileControl1.Size = DevExpress.Utils.ScaleUtils.GetScaleSize(new System.Drawing.Size(rect.Width-100, rect.Height-200));

            TaskFinished(null, null);

            System.Timers.Timer t = new System.Timers.Timer(60000);//实例化Timer类，设置时间间隔
            t.Elapsed += new System.Timers.ElapsedEventHandler(TaskFinished);//到达时间的时候执行事件

            t.AutoReset = true;//设置是执行一次（false）还是一直执行(true)

            t.Enabled = true;//是否执行System.Timers.Timer.Elapsed事件

            //this.orderProcess.Text = "ssssssssssssss";

        }

      
        //private void newOppsListBindingSource_ListChanged(object sender, ListChangedEventArgs e) {
        //    RefreshNewOppTile((BindingList<Opportunity>)newOppsListBindingSource.DataSource);
        //}

        private void generalStatsBindingSource_CurrentItemChanged(object sender, EventArgs e)
        {
            RefreshData((GeneralStats)generalStatsBindingSource.DataSource);
        }


        void TaskFinished(object source, System.Timers.ElapsedEventArgs e)
        {
            WebClient wc = new WebClient();
            Byte[] pageData = wc.DownloadData(AppDomain + "getCrmData.ashx");

            recordResult = Encoding.Default.GetString(pageData).Split(',');

            this.tEmailManager.Elements.Clear();
            TileItemElement titleBrand = new TileItemElement();
            TileItemElement contentBrand = new TileItemElement();
            titleBrand.Text = "邮件管理";
            contentBrand.Text = string.Format("<size=16>共{0}个品牌</size>", recordResult[7]);
            contentBrand.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tEmailManager.Elements.Add(titleBrand);
            this.tEmailManager.Elements.Add(contentBrand);

            tSystemConfig.Text2 = string.Format("<size=14>共{0}个商品品种</size>", recordResult[6]);
            tileCompanyManager.Text2 = string.Format("<size=14>{0}个商家</size>", recordResult[8]);
            titleAdminManager.Text2 = string.Format("<size=38>{0} </size>", recordResult[5]); //管理员数量
            this.orderProcess.Frames.Clear();
            TileItemElement title1 = new TileItemElement();
            TileItemElement content1 = new TileItemElement();
            TileItemFrame fram1 = new TileItemFrame();
            title1.AnimateTransition = Utils.DefaultBoolean.False;
            title1.Text = "工作安排";

            content1.Text = string.Format("<size=16>新订单：{0}</size>", recordResult[1]);
            content1.TextAlignment = TileItemContentAlignment.MiddleCenter;
            fram1.Elements.Add(title1);
            fram1.Elements.Add(content1);
            fram1.Interval = 7000;


            TileItemElement title2 = new TileItemElement();
            TileItemElement content2 = new TileItemElement();
            TileItemElement content3 = new TileItemElement();
            TileItemElement content4 = new TileItemElement();
            TileItemFrame fram2 = new TileItemFrame();
            title2.AnimateTransition = Utils.DefaultBoolean.False;
            title2.Text = "工作安排";
            content2.Text = string.Format("备货中：{0} <br>已完成：{1} <br>已取消：{2}", recordResult[2], recordResult[3], recordResult[4]);
            content3.Text = string.Format("备货中：{0}", recordResult[2]);
            content4.Text = string.Format("已完成：{0}", recordResult[3]);
            content2.TextAlignment = TileItemContentAlignment.MiddleCenter;

            fram2.Elements.Add(title2);
            fram2.Elements.Add(content2);

            fram2.Interval = 9000;
            this.orderProcess.Frames.Add(fram1);
            this.orderProcess.Frames.Add(fram2);
        }
      static  void CreateData()
        {
           
         
        }

        //private void RefreshNewOppTile(BindingList<Opportunity> newOpps) {
        //    for(int i = 0; i < newOpps.Count(); i++) {
        //        Opportunity opp = newOpps[i];
        //        tileCompanyInMoney.Frames[i].Text3 = string.Format("<size=10>{0}\n<b>{1}</b>\n{2:C0}                          {3}</size>",
        //            opp.AccountName, opp.Name, opp.CostSize, opp.Technology);
        //    }
        //}

        private void RefreshData(GeneralStats stats) {
            if(stats == null)
                return;


            Color yellow = Color.FromArgb(209, 159, 4);
            Color green = Color.FromArgb(65, 126, 17);

            int[] oppsCounts = new int[]
            {
                stats.TeamMemberOpenOppsCount0,
                stats.TeamMemberOpenOppsCount1,
                stats.TeamMemberOpenOppsCount2,
                stats.TeamMemberOpenOppsCount3
            };

            int minOpenOpps = oppsCounts.Min();
            int maxOpenOpps = oppsCounts.Max();

            // If everyone has the same amount, then nobody is yellow
            if(minOpenOpps == maxOpenOpps)
                minOpenOpps = -1;

            tSystemConfig.Appearance.BackColor = tSystemConfig.Appearance.BorderColor = stats.TeamMemberOpenOppsCount0 == minOpenOpps ? yellow : green;
            this.tileDayPlan.Appearance.BackColor = tileDayPlan.Appearance.BorderColor = stats.TeamMemberOpenOppsCount0 == minOpenOpps ? yellow : green;
            tileCompanyManager.Appearance.BackColor = tileCompanyManager.Appearance.BorderColor = stats.TeamMemberOpenOppsCount2 == minOpenOpps ? yellow : green;
            titleAdminManager.Appearance.BackColor = titleAdminManager.Appearance.BorderColor = stats.TeamMemberOpenOppsCount3 == minOpenOpps ? yellow : green;
        }

        void RefreshTeamMemberBioData() {
            // This assumes there are 4 team members - this should be updated if team members is ever editable

            BindingList<TeamMember> teamMembers = DataProvider.Instance.TeamMembers;

            tSystemConfig.Text = teamMembers[0].FullName;

            tileCompanyManager.Text = teamMembers[2].FullName;
            titleAdminManager.Text = teamMembers[3].FullName;

            tSystemConfig.Image = teamMembers[0].PhotoSmall;
            tileCompanyManager.Image = teamMembers[2].PhotoSmall;
            titleAdminManager.Image = teamMembers[3].PhotoSmall;
        }

        private void teamMembersBindingSource_CurrentItemChanged(object sender, EventArgs e) {
            RefreshTeamMemberBioData();
        }

        private void tileItemAccounting_ItemClick(object sender, TileItemEventArgs e) {
            OnNavRequest(new NavRequestEventArgs(States.UnderConstruction));
        }

        private void tileGoodsAdd_ItemClick(object sender, TileItemEventArgs e) {
            OnNavRequest(new NavRequestEventArgs(States.GoodsAdd));
        }


        private void orderProcess_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.CommonOrderList));
        }


        private void titleAdminManager_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.AdminManager));
        }

        private void tileCompanyManager_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.CompanyManager));
        }

        private void tileBrandManager_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.BrandManager));
        }

        private void tile_CompanyPayMoney_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.CompanyPayMoney));
        }
        private void tileCompanyInMoney_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.CompanyInMoney));
        }

        private void tSystemConfig_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.SystemConfig));
        }
        private void tCustomManager_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.CustomMangager));
        }

        private void tiletileUpdatePassword_ItemClick(object sender, TileItemEventArgs e)
        {
            OnNavRequest(new NavRequestEventArgs(States.UpdatePassword));
        }



        private void LoadForm()
        {
            this.components = new System.ComponentModel.Container();
             TileItemElement tileItemElement1 = new  TileItemElement();
             TileItemElement tileItemElement2 = new  TileItemElement();
             TileItemElement tileItemElement3 = new  TileItemElement();
             TileItemElement tileItemElement4 = new  TileItemElement();
             TileItemFrame tileItemFrame1 = new  TileItemFrame();
             TileItemElement tileItemElement5 = new  TileItemElement();
             TileItemElement tileItemElement6 = new  TileItemElement();
             TileItemFrame tileItemFrame2 = new  TileItemFrame();
             TileItemElement tileItemElement7 = new  TileItemElement();
             TileItemElement tileItemElement8 = new  TileItemElement();
             TileItemElement tileItemElement9 = new  TileItemElement();
             TileItemElement tileItemElement10 = new  TileItemElement();
             TileItemElement tileItemElement11 = new  TileItemElement();
             TileItemElement tileItemElement12 = new  TileItemElement();
             TileItemElement tileItemElement13 = new  TileItemElement();
             TileItemFrame tileItemFrame3 = new  TileItemFrame();
             TileItemElement tileItemElement14 = new  TileItemElement();
             TileItemFrame tileItemFrame4 = new  TileItemFrame();
             TileItemElement tileItemElement15 = new  TileItemElement();
             TileItemFrame tileItemFrame5 = new  TileItemFrame();
             TileItemElement tileItemElement16 = new  TileItemElement();
             TileItemElement tileItemElement17 = new  TileItemElement();
             TileItemElement tileItemElement18 = new  TileItemElement();
             TileItemElement tileItemElement19 = new  TileItemElement();
             TileItemElement tileItemElement20 = new  TileItemElement();
             TileItemElement tileItemElement21 = new  TileItemElement();
             TileItemElement tileItemElement22 = new  TileItemElement();
             TileItemElement tileItemElement23 = new  TileItemElement();
             TileItemElement tileItemElement24 = new  TileItemElement();
             TileItemElement tileItemElement25 = new  TileItemElement();
             TileItemElement tileItemElement26 = new  TileItemElement();
             TileItemElement tileItemElement27 = new  TileItemElement();
             TileItemElement tileItemElement28 = new  TileItemElement();
             TileItemElement tileItemElement29 = new  TileItemElement();
             TileItemElement tileItemElement30 = new  TileItemElement();
             TileItemElement tileItemElement31 = new  TileItemElement();
             TileItemElement tileItemElement32 = new  TileItemElement();
             TileItemElement tileItemElement33 = new  TileItemElement();
             TileItemElement tileItemElement34 = new  TileItemElement();
             TileItemElement tileItemElement35 = new  TileItemElement();

             TileItemElement eleComapnyInMoney1 = new  TileItemElement();
            this.tGroup = new  TileGroup();
            this.orderProcess = new  TileItem();
            this.tCustomManager = new  TileItem();
            this.tQueryConter = new  TileItem();
            this.tChanceManager = new TileItem();
            this.tProjectmanager = new TileItem();
            this.tileBrandManager = new XtraEditors.TileItem();
            this.tAnnouncement = new  TileItem();
            this.tile_CompanyPayMoney = new XtraEditors.TileItem();
            this.tSMSManager = new  TileItem();
            this.tEmailManager = new  TileItem();
            this.tStatistics = new  TileItem();
            this.tSystemConfig = new  TileItem();
            //日程安排
            this.tileDayPlan = new  TileItem();
            //日程安排
            tWorkbook = new  TileItem();
            tMaintenance = new TileItem();
            tServiceManager = new TileItem();
            tContractManger = new TileItem();
            tLinkProcess = new TileItem();
             tCostManager = new TileItem();
             tActive = new TileItem();

            this.tileCompanyManager = new  TileItem();
            this.titleAdminManager = new  TileItem();
            this.tileControl1 = new  TileControl();
            this.header1 = new DevExpress.CrmDemo.Win.Controls.Header();
            this.generalStatsBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.newOppsListBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.teamMembersBindingSource = new System.Windows.Forms.BindingSource(this.components);
            ((System.ComponentModel.ISupportInitialize)(this.generalStatsBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.newOppsListBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.teamMembersBindingSource)).BeginInit();
            this.SuspendLayout();
            // 
            // tileGroup1
            // 
            this.tGroup.Items.Add(this.orderProcess);
            this.tGroup.Items.Add(this.tileDayPlan);
            this.tGroup.Items.Add(this.tWorkbook);
            this.tGroup.Items.Add(this.tCustomManager);
            this.tGroup.Items.Add(this.tQueryConter);
            this.tGroup.Items.Add(this.tChanceManager);
            this.tGroup.Items.Add(this.tProjectmanager);
            this.tGroup.Items.Add(this.tMaintenance);
            this.tGroup.Items.Add(this.tServiceManager);
            this.tGroup.Items.Add(this.tContractManger);
            this.tGroup.Items.Add(this.tLinkProcess);
             this.tGroup.Items.Add(this.tCostManager);
             this.tGroup.Items.Add(this.tActive);
            this.tGroup.Items.Add(this.tAnnouncement);
            this.tGroup.Items.Add(this.tSMSManager);
            this.tGroup.Items.Add(this.tEmailManager);
            this.tGroup.Items.Add(this.tStatistics);
            this.tGroup.Items.Add(this.tSystemConfig);
            this.tGroup.Items.Add(this.tileCompanyManager);
            this.tGroup.Items.Add(this.titleAdminManager);
            this.tGroup.Name = "tileGroup1";
            this.tGroup.Text = null;
            // 
            // orderProcess
            // 
            this.orderProcess.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.orderProcess.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.orderProcess.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.orderProcess.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.orderProcess.AppearanceItem.Normal.Options.UseBackColor = true;
            this.orderProcess.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.orderProcess.AppearanceItem.Normal.Options.UseFont = true;
            this.orderProcess.AppearanceItem.Normal.Options.UseForeColor = true;
            tileItemElement1.AnimateTransition = DevExpress.Utils.DefaultBoolean.False;
            tileItemElement1.Text = "订单处理";
            tileItemElement2.Text = "";
            tileItemElement2.TextAlignment =  TileItemContentAlignment.BottomLeft;
            this.orderProcess.Elements.Add(tileItemElement1);
            this.orderProcess.Elements.Add(tileItemElement2);
            this.orderProcess.IsLarge = true;
            this.orderProcess.Name = "orderProcess";
            this.orderProcess.Padding = new System.Windows.Forms.Padding(10, 3, 10, 18);
            this.orderProcess.ItemClick += new  TileItemClickEventHandler(this.orderProcess_ItemClick);
            // 
            // 客户管理
            // 
            this.tCustomManager.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tCustomManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tCustomManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tCustomManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tCustomManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tCustomManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tCustomManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tCustomManager.AppearanceItem.Normal.Options.UseForeColor = true;

            TileItemElement eCustomTitle = new TileItemElement();
            TileItemElement eCustomBody = new TileItemElement();
            eCustomTitle.AnimateTransition = DevExpress.Utils.DefaultBoolean.False;
            eCustomTitle.Text = "客户管理";
            eCustomBody.Text = "<size=16>客户管理</size>";
            eCustomBody.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.excel_logo_med;
            eCustomBody.ImageAlignment = TileItemContentAlignment.MiddleLeft;
            eCustomBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tCustomManager.Elements.Add(eCustomBody);
            this.tCustomManager.IsLarge = true;
            this.tCustomManager.Name = "tCustomManager";
            this.tCustomManager.Padding = new System.Windows.Forms.Padding(10, 3, 10, 18);
            this.tCustomManager.ItemClick += new  TileItemClickEventHandler(this.tCustomManager_ItemClick);
            // 
            // 检索中心
            // 
            this.tQueryConter.AppearanceItem.Normal.BackColor = Color.IndianRed;
            this.tQueryConter.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))));
            this.tQueryConter.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tQueryConter.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tQueryConter.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tQueryConter.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tQueryConter.AppearanceItem.Normal.Options.UseFont = true;
            this.tQueryConter.AppearanceItem.Normal.Options.UseForeColor = true;

            TileItemElement eQueryBody = new TileItemElement();

            eQueryBody.Text = "<size=18>检索中心</size>";
            eQueryBody.TextLocation = new System.Drawing.Point(0, 0);
            eQueryBody.TextAlignment = XtraEditors.TileItemContentAlignment.MiddleCenter;

            this.tQueryConter.Elements.Add(eQueryBody);

            this.tQueryConter.IsLarge = true;
            this.tQueryConter.Name = "tQueryConter";
            this.tQueryConter.Padding = new System.Windows.Forms.Padding(10, 3, 10, 10);
            this.tQueryConter.ItemClick += new  TileItemClickEventHandler(this.tiletileUpdatePassword_ItemClick);


            // 
            // 机会管理
            // 
            this.tChanceManager.AppearanceItem.Normal.BackColor = Color.DeepSkyBlue;
            this.tChanceManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))));
            this.tChanceManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tChanceManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tChanceManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tChanceManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tChanceManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tChanceManager.AppearanceItem.Normal.Options.UseForeColor = true;

            TileItemElement eChanceBody = new TileItemElement();
            eChanceBody.Text = "<size=18>机会管理</size>";
            eChanceBody.TextLocation = new System.Drawing.Point(0, 0);
            eChanceBody.TextAlignment = XtraEditors.TileItemContentAlignment.MiddleCenter;

            this.tChanceManager.Elements.Add(eChanceBody);
            this.tChanceManager.IsLarge = true;
            this.tChanceManager.Name = "tChanceManager";
            this.tChanceManager.Padding = new System.Windows.Forms.Padding(10, 3, 10, 10);
            this.tChanceManager.ItemClick += new TileItemClickEventHandler(this.tiletileUpdatePassword_ItemClick);


            // 
            // 项目管理
            // 
            this.tProjectmanager.AppearanceItem.Normal.BackColor = Color.DeepPink;
            this.tProjectmanager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(77)))), ((int)(((byte)(77)))), ((int)(((byte)(77)))));
            this.tProjectmanager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tProjectmanager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tProjectmanager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tProjectmanager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tProjectmanager.AppearanceItem.Normal.Options.UseFont = true;
            this.tProjectmanager.AppearanceItem.Normal.Options.UseForeColor = true;

            TileItemElement eProjectBody = new TileItemElement();
            eProjectBody.Text = "<size=18>项目管理</size>";
            eProjectBody.TextLocation = new System.Drawing.Point(0, 0);
            eProjectBody.TextAlignment = XtraEditors.TileItemContentAlignment.MiddleCenter;

            this.tProjectmanager.Elements.Add(eProjectBody);
            this.tProjectmanager.IsLarge = true;
            this.tProjectmanager.Name = "tProjectmanager";
            this.tProjectmanager.Padding = new System.Windows.Forms.Padding(10, 3, 10, 10);
            this.tProjectmanager.ItemClick += new TileItemClickEventHandler(this.tiletileUpdatePassword_ItemClick);


            // 
            // 公告栏
            // 
            this.tAnnouncement.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(75)))), ((int)(((byte)(95)))));
            this.tAnnouncement.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(75)))), ((int)(((byte)(95)))));
            this.tAnnouncement.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tAnnouncement.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tAnnouncement.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tAnnouncement.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tAnnouncement.AppearanceItem.Normal.Options.UseFont = true;
            this.tAnnouncement.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement tAnnounceBody = new TileItemElement();
            tAnnounceBody.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.inline_order;
            tAnnounceBody.ImageAlignment = TileItemContentAlignment.MiddleCenter;
            tAnnounceBody.Text = "<size=18>公告栏</size>";
            tAnnounceBody.TextAlignment = TileItemContentAlignment.BottomLeft;
            this.tAnnouncement.Elements.Add(tAnnounceBody);
            this.tAnnouncement.IsLarge = true;
            this.tAnnouncement.Name = "tAnnouncement";
            this.tAnnouncement.Padding = new System.Windows.Forms.Padding(10, 3, 10, 24);
            this.tAnnouncement.ItemClick += new  TileItemClickEventHandler(this.tileInlineOrder_ItemClick);
            // 
            // 短信管理
            // 
            this.tSMSManager.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(75)))), ((int)(((byte)(95)))));
            this.tSMSManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(68)))), ((int)(((byte)(75)))), ((int)(((byte)(95)))));
            this.tSMSManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tSMSManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tSMSManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tSMSManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tSMSManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tSMSManager.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eSMSTitle = new TileItemElement();
            TileItemElement eSMSBody = new TileItemElement();

            eSMSTitle.AnimateTransition = DevExpress.Utils.DefaultBoolean.False;
            eSMSTitle.Text = "<size=12> 短信管理</size>";
         
            this.tSMSManager.FrameAnimationInterval = 4000;
            eSMSBody.AnimateTransition = DevExpress.Utils.DefaultBoolean.False;
            eSMSBody.Text = "短信管理";
            eSMSBody.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.moneyReport;
            eSMSBody.ImageAlignment = TileItemContentAlignment.MiddleCenter;
            eSMSBody.TextAlignment = XtraEditors.TileItemContentAlignment.BottomCenter;

            this.tSMSManager.Elements.Add(eSMSTitle);
            this.tSMSManager.Elements.Add(eSMSBody);
            this.tSMSManager.IsLarge = true;
            this.tSMSManager.Name = "tSMSManager";
            this.tSMSManager.Padding = new System.Windows.Forms.Padding(10, 3, 10, 20);
            this.tSMSManager.ItemClick += new  TileItemClickEventHandler(this.tileCompanyInMoney_ItemClick);
            // 
            // brandManager
            // 
            this.tEmailManager.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(175)))), ((int)(((byte)(111)))), ((int)(((byte)(40)))));
            this.tEmailManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(175)))), ((int)(((byte)(111)))), ((int)(((byte)(40)))));
            this.tEmailManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tEmailManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tEmailManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tEmailManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tEmailManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tEmailManager.AppearanceItem.Normal.Options.UseForeColor = true;


            this.tEmailManager.IsLarge = true;
            this.tEmailManager.Name = "brandManager";
            this.tEmailManager.Padding = new System.Windows.Forms.Padding(10, 3, 10, 14);
            this.tEmailManager.ItemClick += new  TileItemClickEventHandler(this.tileBrandManager_ItemClick);
            // 
            // 统计分析
            // 
            this.tStatistics.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(126)))), ((int)(((byte)(18)))), ((int)(((byte)(43)))));
            this.tStatistics.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(126)))), ((int)(((byte)(18)))), ((int)(((byte)(43)))));
            this.tStatistics.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tStatistics.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tStatistics.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tStatistics.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tStatistics.AppearanceItem.Normal.Options.UseFont = true;
            this.tStatistics.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eStatTitle = new TileItemElement();
            TileItemElement eStatBody = new TileItemElement();
            eStatTitle.ImageAlignment = TileItemContentAlignment.TopLeft;
            eStatTitle.Text = " ";
            eStatBody.Text = "<size=18>统计分析</size>";
            eStatBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tStatistics.Elements.Add(eStatTitle);
            this.tStatistics.Elements.Add(eStatBody);
            this.tStatistics.IsLarge = true;
            this.tStatistics.Name = "tStatistics";
            this.tStatistics.Padding = new System.Windows.Forms.Padding(10, 10, 10, 24);
            this.tStatistics.ItemClick += new  TileItemClickEventHandler(this.tileGoodsAdd_ItemClick);
            // 
            // tileGoodsManager
            // 
            this.tSystemConfig.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.tSystemConfig.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.tSystemConfig.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tSystemConfig.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tSystemConfig.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tSystemConfig.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tSystemConfig.AppearanceItem.Normal.Options.UseFont = true;
            this.tSystemConfig.AppearanceItem.Normal.Options.UseForeColor = true;
            tileItemElement22.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.mugshot1;
            tileItemElement22.ImageAlignment =  TileItemContentAlignment.MiddleRight;
            tileItemElement22.Text = "First Last";
            tileItemElement23.Text = "<size=38>12</size>";
            tileItemElement23.TextAlignment =  TileItemContentAlignment.MiddleCenter;
            tileItemElement24.Text = "新增、修改、删除";
            this.tSystemConfig.Elements.Add(tileItemElement22);
            this.tSystemConfig.Elements.Add(tileItemElement23);
            //this.tileGoodsManager.Elements.Add(tileItemElement24);
            this.tSystemConfig.IsLarge = true;
            this.tSystemConfig.Name = "tileGoodsManager";
            this.tSystemConfig.Padding = new System.Windows.Forms.Padding(10);
            this.tSystemConfig.ItemClick += new  TileItemClickEventHandler(this.tSystemConfig_ItemClick);



            // 
            // tileDayPlan
            // 

            this.tileDayPlan.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tileDayPlan.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tileDayPlan.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tileDayPlan.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tileDayPlan.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tileDayPlan.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tileDayPlan.AppearanceItem.Normal.Options.UseFont = true;
            this.tileDayPlan.AppearanceItem.Normal.Options.UseForeColor = true;

           TileItemElement element1 = new  TileItemElement();
           TileItemElement element2 = new  TileItemElement();

           element1.Text = "日程安排";
           element2.Text = "<size=12>最近三日安排</size>";
           element2.TextAlignment = TileItemContentAlignment.MiddleCenter;
           this.tileDayPlan.Elements.Add(element1);
           this.tileDayPlan.Elements.Add(element2);
            this.tileDayPlan.Name = "tileDayPlan";
            this.tileDayPlan.Padding = new System.Windows.Forms.Padding(10);
      //      this.titleAdminManager.ItemClick += new  TileItemClickEventHandler(this.titleAdminManager_ItemClick);



            // 
            // 后期维护
            // 
            this.tMaintenance.AppearanceItem.Normal.BackColor = Color.DarkSlateBlue;
            this.tMaintenance.AppearanceItem.Normal.BorderColor = Color.DarkSlateBlue;
            this.tMaintenance.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tMaintenance.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tMaintenance.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tMaintenance.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tMaintenance.AppearanceItem.Normal.Options.UseFont = true;
            this.tMaintenance.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eMaintenanceTitle = new TileItemElement();
            TileItemElement eMaintenanceBody = new TileItemElement();

            eMaintenanceTitle.Text = "后期维护";
            eMaintenanceBody.Text = "<size=12>后期维护</size>";
            eMaintenanceBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tMaintenance.Elements.Add(eMaintenanceTitle);
            this.tMaintenance.Elements.Add(eMaintenanceBody);
            this.tMaintenance.Name = "tMaintenance";
            this.tMaintenance.Padding = new System.Windows.Forms.Padding(10);


            // 
            // 服务管理
            // 
            this.tServiceManager.AppearanceItem.Normal.BackColor = Color.DarkOrange;
            this.tServiceManager.AppearanceItem.Normal.BorderColor = Color.DarkOrange;
            this.tServiceManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tServiceManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tServiceManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tServiceManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tServiceManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tServiceManager.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eServiceTitle = new TileItemElement();
            TileItemElement eServiceBody = new TileItemElement();

            eServiceTitle.Text = "服务管理";
            eServiceBody.Text = "<size=12>服务管理</size>";
            eServiceBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tServiceManager.Elements.Add(eServiceTitle);
            this.tServiceManager.Elements.Add(eServiceBody);
            this.tServiceManager.Name = "tMaintenance";
            this.tServiceManager.Padding = new System.Windows.Forms.Padding(10);
            // 
            // 合同管理
            // 
            this.tContractManger.AppearanceItem.Normal.BackColor = Color.DarkOrange;
            this.tContractManger.AppearanceItem.Normal.BorderColor = Color.DarkOrange;
            this.tContractManger.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tContractManger.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tContractManger.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tContractManger.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tContractManger.AppearanceItem.Normal.Options.UseFont = true;
            this.tContractManger.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eContractTitle = new TileItemElement();
            TileItemElement eContractBody = new TileItemElement();

            eContractTitle.Text = "合同管理";
            eContractBody.Text = "<size=12>合同管理</size>";
            eContractBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tContractManger.Elements.Add(eContractTitle);
            this.tContractManger.Elements.Add(eContractBody);
            this.tContractManger.Name = "tMaintenance";
            this.tContractManger.Padding = new System.Windows.Forms.Padding(10);


            // 
            // 来电处理
            // 
            this.tLinkProcess.AppearanceItem.Normal.BackColor = Color.DarkOrange;
            this.tLinkProcess.AppearanceItem.Normal.BorderColor = Color.DarkOrange;
            this.tLinkProcess.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tLinkProcess.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tLinkProcess.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tLinkProcess.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tLinkProcess.AppearanceItem.Normal.Options.UseFont = true;
            this.tLinkProcess.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eProcessTitle = new TileItemElement();
            TileItemElement eProcessBody = new TileItemElement();

            eProcessTitle.Text = "来电处理";
            eProcessBody.Text = "<size=12>来电处理</size>";
            eProcessBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tLinkProcess.Elements.Add(eProcessTitle);
            this.tLinkProcess.Elements.Add(eProcessBody);
            this.tLinkProcess.Name = "tMaintenance";
            this.tLinkProcess.Padding = new System.Windows.Forms.Padding(10);


               // 
            // 费用管理
            // 
            this.tCostManager.AppearanceItem.Normal.BackColor = Color.CadetBlue;
            this.tCostManager.AppearanceItem.Normal.BorderColor = Color.CadetBlue;
            this.tCostManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tCostManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tCostManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tCostManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tCostManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tCostManager.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eCostTitle = new TileItemElement();
            TileItemElement eCostBody = new TileItemElement();

            eCostTitle.Text = "费用管理";
            eCostBody.Text = "<size=12>费用管理</size>";
            eCostBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tCostManager.Elements.Add(eCostTitle);
            this.tCostManager.Elements.Add(eCostBody);
            this.tCostManager.Name = "tCostManager";
            this.tCostManager.Padding = new System.Windows.Forms.Padding(10);



            // 
            // 市场活动
            // 
            this.tActive.AppearanceItem.Normal.BackColor = Color.CadetBlue;
            this.tActive.AppearanceItem.Normal.BorderColor = Color.CadetBlue;
            this.tActive.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tActive.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tActive.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tActive.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tActive.AppearanceItem.Normal.Options.UseFont = true;
            this.tActive.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eActiveTitle = new TileItemElement();
            TileItemElement eActiveBody = new TileItemElement();

            eActiveTitle.Text = "市场活动";
            eActiveBody.Text = "<size=12>市场活动</size>";
            eActiveBody.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tActive.Elements.Add(eActiveTitle);
            this.tActive.Elements.Add(eActiveBody);
            this.tActive.Name = "tActive";
            this.tActive.Padding = new System.Windows.Forms.Padding(10);


            // 
            // tWorkbook
            // 

            this.tWorkbook.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tWorkbook.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.tWorkbook.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tWorkbook.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tWorkbook.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tWorkbook.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tWorkbook.AppearanceItem.Normal.Options.UseFont = true;
            this.tWorkbook.AppearanceItem.Normal.Options.UseForeColor = true;
            TileItemElement eWorkbook1 = new TileItemElement();
            TileItemElement eWorkbook2 = new TileItemElement();

            eWorkbook1.Text = "通讯录";
            eWorkbook2.Text = "<size=12>通讯录</size>";
            eWorkbook2.TextAlignment = TileItemContentAlignment.MiddleCenter;
            this.tWorkbook.Elements.Add(eWorkbook1);
            this.tWorkbook.Elements.Add(eWorkbook2);
            this.tWorkbook.Name = "tileDayPlan";
            this.tWorkbook.Padding = new System.Windows.Forms.Padding(10);



            // 
            // tileItemTeamMember3
            // 
            this.tileCompanyManager.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.tileCompanyManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(65)))), ((int)(((byte)(126)))), ((int)(((byte)(17)))));
            this.tileCompanyManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.tileCompanyManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.tileCompanyManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.tileCompanyManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.tileCompanyManager.AppearanceItem.Normal.Options.UseFont = true;
            this.tileCompanyManager.AppearanceItem.Normal.Options.UseForeColor = true;
            tileItemElement28.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.mugshot3;
            tileItemElement28.ImageAlignment =  TileItemContentAlignment.MiddleRight;
            tileItemElement28.Text = "";
            tileItemElement29.Text = "";
            tileItemElement29.TextAlignment =  TileItemContentAlignment.MiddleLeft;
            tileItemElement30.Text = "新增、修改、删除、用户设置";
            this.tileCompanyManager.Elements.Add(tileItemElement28);
            this.tileCompanyManager.Elements.Add(tileItemElement29);
            //this.tileCompanyManager.Elements.Add(tileItemElement30);
            this.tileCompanyManager.Name = "tileItemTeamMember3";
            this.tileCompanyManager.Padding = new System.Windows.Forms.Padding(10);
            this.tileCompanyManager.ItemClick += new  TileItemClickEventHandler(this.tileCompanyManager_ItemClick);
            // 
            // tileItemTeamMember4
            // 
            this.titleAdminManager.AppearanceItem.Normal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.titleAdminManager.AppearanceItem.Normal.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(209)))), ((int)(((byte)(159)))), ((int)(((byte)(4)))));
            this.titleAdminManager.AppearanceItem.Normal.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.titleAdminManager.AppearanceItem.Normal.ForeColor = System.Drawing.Color.White;
            this.titleAdminManager.AppearanceItem.Normal.Options.UseBackColor = true;
            this.titleAdminManager.AppearanceItem.Normal.Options.UseBorderColor = true;
            this.titleAdminManager.AppearanceItem.Normal.Options.UseFont = true;
            this.titleAdminManager.AppearanceItem.Normal.Options.UseForeColor = true;
            tileItemElement31.Image = global::DevExpress.CrmDemo.Win.Properties.Resources.admin;
            tileItemElement31.ImageAlignment =  TileItemContentAlignment.MiddleRight;
            tileItemElement31.Text = "First Last";
            tileItemElement32.Text = "<size=38></size>";
            tileItemElement32.TextAlignment =  TileItemContentAlignment.MiddleLeft;
            tileItemElement33.Text = "新增、修改、删除";
            this.titleAdminManager.Elements.Add(tileItemElement31);
            this.titleAdminManager.Elements.Add(tileItemElement32);
            // this.titleAdminManager.Elements.Add(tileItemElement33);
            this.titleAdminManager.Name = "titleAdminManager";
            this.titleAdminManager.Padding = new System.Windows.Forms.Padding(10);
            this.titleAdminManager.ItemClick += new  TileItemClickEventHandler(this.titleAdminManager_ItemClick);
            // 
            // tileControl1
            // 
            this.tileControl1.Groups.Add(this.tGroup);
            this.tileControl1.IndentBetweenGroups = 40;
            this.tileControl1.ItemPadding = new System.Windows.Forms.Padding(10, 3, 10, 3);
            this.tileControl1.ItemSize = 140;
            this.tileControl1.Location = new System.Drawing.Point(45, 81);
            this.tileControl1.Name = "tileControl1";
            this.tileControl1.Padding = new System.Windows.Forms.Padding(21, 19, 21, 19);
            this.tileControl1.RowCount = 3;
            this.tileControl1.HorizontalContentAlignment = Utils.HorzAlignment.Near;
            this.tileControl1.Size = new System.Drawing.Size(933, 363);
            this.tileControl1.TabIndex = 1;
            this.tileControl1.Text = "tileControl1";
            // 
            // header1
            // 
            this.header1.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
            this.header1.Appearance.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Pixel);
            this.header1.Appearance.Options.UseBackColor = true;
            this.header1.Appearance.Options.UseFont = true;
            this.header1.BackButtonVisible = false;
            this.header1.Dock = System.Windows.Forms.DockStyle.Top;
            this.header1.Location = new System.Drawing.Point(0, 0);
            this.header1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
            this.header1.Name = "header1";
            this.header1.Size = new System.Drawing.Size(1024, 75);
            this.header1.TabIndex = 2;
            this.header1.Title = "开始";
            // 
            // generalStatsBindingSource
            // 
            this.generalStatsBindingSource.DataSource = typeof(DevExpress.CrmDemo.Win.Data.GeneralStats);
            this.generalStatsBindingSource.CurrentItemChanged += new System.EventHandler(this.generalStatsBindingSource_CurrentItemChanged);
            // 
            // newOppsListBindingSource
            // 
            //    this.newOppsListBindingSource.ListChanged += new System.ComponentModel.ListChangedEventHandler(this.newOppsListBindingSource_ListChanged);
            // 
            // teamMembersBindingSource
            // 
            this.teamMembersBindingSource.DataMember = "TeamMembers";
            this.teamMembersBindingSource.DataSource = typeof(DevExpress.CrmDemo.Win.Data.DataProvider);
            this.teamMembersBindingSource.CurrentItemChanged += new System.EventHandler(this.teamMembersBindingSource_CurrentItemChanged);
            // 
            // Start
            // 
            this.Appearance.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
            this.Appearance.Options.UseBackColor = true;
            this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.Controls.Add(this.tileControl1);
            this.Controls.Add(this.header1);
            this.Name = "Start";
            this.Size = new System.Drawing.Size(1024, 768);
            this.Load += new System.EventHandler(this.Start_Load);
            ((System.ComponentModel.ISupportInitialize)(this.generalStatsBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.newOppsListBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.teamMembersBindingSource)).EndInit();
            this.ResumeLayout(false);
        }
        
        

        

    }
}
